home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 21
/
Cream of the Crop 21 (Terry Blount) (October 1996).iso
/
doom
/
extra.zip
/
SLOT.ZIP
/
SLOT.ACS
< prev
next >
Wrap
Text File
|
1996-07-10
|
8KB
|
279 lines
#include "common.acs"
int slot1;
int slot2;
int slot3;
script 1 OPEN
{
Thing_Activate(1);
delay(const:64);
Thing_Deactivate(1);
}
script 2 OPEN
{
switch (GameType())
{
case GAME_SINGLE_PLAYER:
ambientsound("PickupArtifact",127);
print(s:"YOUR JOURNEY NEARS ITS END");
delay(3*35);
print(s:"BEYOND THIS CAVERN LIES THE");
delay(3*35);
printbold(s:"SLOT MACHINE OF CHAOS!");
delay(3*35);
break;
case GAME_NET_COOPERATIVE:
ambientsound("PickupArtifact",127);
print(s:"YOU AWAKEN ALONE");
delay(3*35);
print(s:"YOUR MATES HAVE DONE A BUNK");
delay(3*35);
printbold(s:"WHERE ARE THEY?");
break;
case GAME_NET_DEATHMATCH:
break;
}
}
script 3 (void)
{
switch(GameType())
{
case GAME_SINGLE_PLAYER:
print(s:"HERE IS THE SLOT MACHINE OF CHAOS!");
delay(3*35);
printbold(s:"2 OR 3 OF A KIND WINS A PRIZE!");
break;
case GAME_NET_COOPERATIVE:
print(s:"AT LAST!");
delay(3*35);
printbold(s:"THE SLOT MACHINE OF CHAOS!");
break;
case GAME_NET_DEATHMATCH:
break;
}
}
script 4 (int arg0, int arg1)
{
int var0;
Floor_LowerInstant(arg0, 0, 16);
thingsound(arg1, "GlassShatter", 127);
delay(const:1);
var0 = 20;
while(var0-- > 0)
{
Thing_ProjectileGravity(arg1, random(54, 63), random(0, 255), random(10, 40), random(5, 20));
}
}
script 5 (void)
{
int var0;
var0 = 40;
while(var0-- > 0)
{
Thing_ProjectileGravity(2, 108, random(0, 255), random(10, 30), random(5, 15));
Thing_ProjectileGravity(2, 107, random(0, 255), random(10, 30), random(5, 15));
}
Thing_Deactivate(3);
Light_LowerByValue(2,100);
}
script 6 (int arg0, int arg1)
{
ambientsound("PickupArtifact",127);
switch(arg1)
{
case 1:
SetLineTexture(arg0 - 3, SIDE_FRONT, TEXTURE_MIDDLE, "X_FIRE01");
print(s:"FIRE");
break;
case 2:
SetLineTexture(arg0 - 3, SIDE_FRONT, TEXTURE_MIDDLE, "FORPUZ1");
print(s:"BEAST");
break;
case 3:
SetLineTexture(arg0 - 3, SIDE_FRONT, TEXTURE_MIDDLE, "ICE01");
print(s:"ICE");
break;
case 4:
SetLineTexture(arg0 - 3, SIDE_FRONT, TEXTURE_MIDDLE, "FORPUZ3");
print(s:"TRAP");
break;
case 5:
SetLineTexture(arg0 - 3, SIDE_FRONT, TEXTURE_MIDDLE, "PUZZLE5");
print(s:"REPLENISHMENT");
break;
case 6:
SetLineTexture(arg0 - 3, SIDE_FRONT, TEXTURE_MIDDLE, "PUZZLE12");
print(s:"ARTIFACT");
break;
}
Light_RaiseByValue(arg0,200);
}
script 7 (void)
{
SetLineTexture(4, SIDE_FRONT, TEXTURE_MIDDLE, "CLOCK12");
Light_LowerByValue(4,200);
Light_LowerByValue(5,200);
Light_LowerByValue(6,200);
slot1 = random(1,6);
{
delay(35);
ACS_Execute(6, 1, 4, slot1, 0);
}
SetLineTexture(4, SIDE_FRONT, TEXTURE_MIDDLE, "CLOCK13");
slot2 = random(1,6);
{
delay(35);
ACS_Execute(6, 1, 5, slot2, 0);
}
SetLineTexture(4, SIDE_FRONT, TEXTURE_MIDDLE, "CLOCK14");
slot3 = random(1,6);
{
delay(35);
ACS_Execute(6, 1, 6, slot3, 0);
}
SetLineTexture(4, SIDE_FRONT, TEXTURE_MIDDLE, "CLOCK15");
int total;
total = 0;
if (slot1 == slot2) total += 1;
if (slot3 == slot2) total += 2;
if (slot1 == slot3) total += 4;
delay(10);
switch (total)
{
case 1:
ACS_Execute(8, 1, slot1, 0, 0);
break;
case 2:
ACS_Execute(8, 1, slot2, 0, 0);
break;
case 4:
ACS_Execute(8, 1, slot1, 0, 0);
break;
case 7:
ACS_Execute(9, 1, slot3, 0, 0);
break;
}
SetLineTexture(4, SIDE_FRONT, TEXTURE_MIDDLE, "CLOCKC");
}
script 8 (int arg0)
{
delay(10);
switch(arg0)
{
case 1:
ACS_Execute(10,1,10,108,0);
print(s:"TWO FIRES = FLAME BURST");
break;
case 2:
print(s:"TWO BEASTS = POSSE");
Thing_Spawn(7,4,64);
break;
case 3:
ACS_Execute(10,1,65,54,0);
print(s:"TWO ICES = ICE SHARDS");
break;
case 4:
ACS_Execute(10,1,51,52,0);
print(s:"TWO TRAPS = DARTS");
break;
case 5:
ACS_Execute(10,1,55,60,0);
print(s:"TWO REPLENISHMENTS = RELIEF");
Thing_Spawn(6,75,64);
Thing_Spawn(7,23,64);
break;
case 6:
ACS_Execute(10,1,57,63,0);
print(s:"TWO ARTIFACTS = ITEM");
Thing_Spawn(6,random(13,18),64);
break;
}
}
script 9 (int arg0)
{
delay(10);
switch(arg0)
{
case 1:
ACS_Execute(10,1,53,10,0);
print(s:"THREE FIRES = INFERNO!");
delay(10);
ACS_Execute(10,1,53,10,0);
break;
case 2:
ACS_Execute(10,1,107,108,0);
print(s:"THREE BEASTS = SLAUGHTER!");
Thing_Spawn(7,3,64);
break;
case 3:
ACS_Execute(10,1,54,65,0);
print(s:"THREE ICES = ABSOLUTE ZERO!");
Thing_Spawn(7,20,64);
break;
case 4:
ACS_Execute(10,1,106,107,0);
print(s:"THREE TRAPS");
delay(70);
ACS_Execute(10,1,40,53,0);
printbold(s:"= DEATHTRAP!!");
break;
case 5:
ACS_Execute(10,1,56,62,0);
print(s:"3 REPLENISHMENTS = PANACEA");
Thing_Spawn(7,24,0);
break;
case 6:
ACS_Execute(10,1,94,108,0);
print(s:"3 ARTIFACTS =");
delay(25);
printbold(s:"KEYS GALORE!!");
delay(35);
printbold(s:"NOW LET'S GET OUTTA HERE!");
break;
}
}
script 10 (int arg0, int arg1)
{
int var0;
var0 = 10;
while(var0-- > 0)
{
Thing_ProjectileGravity(6, arg0, random(34,94), random(20, 80), random(10,30));
Thing_ProjectileGravity(6, arg1, random(34,94), random(30, 80), random(10, 30));
Thing_ProjectileGravity(6, arg1, random(34,94), random(30, 80), random(10, 30));
}
}
script 11 (void)
{
print(s:"WELL DONE - YOU SUCCEEDED!");
delay(35*2);
print(s:"HOPE YOU ENJOYED IT - PHIL ROBERTS");
delay(35*3);
print(s:"WHAT ARE YOU WAITING FOR? GO FOR IT!");
}